﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cow.Module;

namespace Cow.Handler
{
    public class ExportServiceHandler : ExportFromStringBuilder
    {
        public override string SuffixName
        {
            get { return "Service.cs"; }
        }

        protected override string TemplatePath
        {
            get { return AppDomain.CurrentDomain.BaseDirectory + "/Template/Service.txt"; }
        }

        protected override List<String> GetExportContent(Design design)
        {
            List<String> valueList = new List<string>();
            valueList.Add(design.ModuleName);
            valueList.Add(design.ModuleName.ToLower());
            valueList.Add(String.Format(design.NameSpace, design.ModuleName));
            valueList.Add(design.ModuleName.ToUpper());
            return valueList;
        }
    }
}
